package com.xlx.ui.domain.DTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description:
 * @author: 张川
 * @date: 2020-12-07 21:27
 */
@ApiModel(value = "用户")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserDTO {
    @ApiModelProperty(value = "ID")
    private Integer id;

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "头像")
    private String photo;

    @ApiModelProperty(value = "验证码")
    private String code;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态:true(锁定),false(正常)")
    private Boolean state;

    /**
     * 权限:0(管理员),1(用户)
     */
    @ApiModelProperty(value = "权限:0(管理员),1(用户)")
    private Integer auth;

    @ApiModelProperty(value = "开始页")
    private Integer page;

    @ApiModelProperty(value = "页码")
    private Integer limit;
    @ApiModelProperty(value = "排序字段")
    private String sort;

}
